package user;

import operation.*;

import java.util.Scanner;

public class NormalUser extends User{
    public NormalUser(String name) {
        super(name);
        ioPerations = new IOPeration[]{
                new ExitOperation(),
                new BorrowOperation(),
                new FindOperation(),
                new ReturnOperation()
        };
    }

    public int menu(){
        System.out.println("hello "+this.name);
        System.out.println("1.借阅图书");
        System.out.println("2.查找图书");
        System.out.println("3.归还图书");
        System.out.println("0.退出系统");
        Scanner in = new Scanner(System.in);
        int choice = in.nextInt();
        return choice;
    }
}
